import * as actionTypes from './constants';
import { fromJS } from 'immutable';

const defaultStatus = fromJS({
  login: false,
});

const reducer = (state = defaultStatus, action) => {
  switch (action.type) {
    case actionTypes.CHANGE_LOGIN:
      return state.set('login', action.value);
    default:
      return state;
  }
};
export default reducer;
